// fixPNG(); http://www.tigir.com/js/fixpng.js (author Tigirlas Igor)
function fixPNG(element)
{
    if (/MSIE (5\.5|6).+Win/.test(navigator.userAgent))
    {
        var src;
        var width;
        var height;
        
        if (element.tagName=='IMG')
        {
            if (/\.png$/.test(element.src)) {
                width = element.offsetWidth;
                height = element.offsetHeight;
                src = element.src;
                element.src = "images/0.gif";
                element.style.width = width;
                element.style.height = height;

            }
        } else {
            src = element.currentStyle.backgroundImage.match(/url\("(.+\.png)"\)/i)
            if (src)
            {
                src = src[1];
                element.runtimeStyle.backgroundImage="none";
            }
        }
        
        if (src) element.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "',sizingMethod='scale')";
    }
}